package com.tbit.main.pojo;

import com.tbit.common.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.util.List;

/**
 * 用户操作日志对象 operate_log
 *
 * @author jing
 * @date 2021-04-07
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class OperateLog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 操作人类型
     */
    private Integer type;

    /**
     * 操作人姓名
     */
    private String name;

    /**
     * 操作人手机号码
     */
    private String phone;

    /**
     * 操作人ID,角色id
     */
    private Integer id;

    /**
     * 操作时间
     */
    private Date operateDt;

    /**
     * 模块名称
     */
    private String module;

    /**
     * 模块简称
     */
    private String moduleSn;

    /**
     * 操作名称
     */
    private String method;

    /**
     * 操作简称
     */
    private String methodSn;

    /**
     * 操作者ip
     */
    private String operateIp;

    /**
     * 接口路径
     */
    private String operatePath;

    /**
     * 入口参数
     */
    private String param;

    private List<Integer> list;

    private String beginTime;

    private String endTime;

    public OperateLog(Integer type, String name, String phone, Integer id, Date operateDt, String module, String moduleSn, String method, String methodSn, String operateIp, String operatePath, String param) {
        this.type = type;
        this.name = name;
        this.phone = phone;
        this.id = id;
        this.operateDt = operateDt;
        this.module = module;
        this.moduleSn = moduleSn;
        this.method = method;
        this.methodSn = methodSn;
        this.operateIp = operateIp;
        this.operatePath = operatePath;
        this.param = param;
    }
}